<?php

namespace app\mini\model;

use app\common\model\BaseModel;
use app\common\model\Company;
use think\model\relation\BelongsTo;

class Salesman extends BaseModel
{
    protected $hidden = ['password'];

    public function company():BelongsTo
    {
        return $this->belongsTo(Company::class, 'company_id', 'id');
    }
}